{% extends "_base.html" %}
{% block title %}确认页面{% endblock %}
{% block script %}
<script type="text/javascript">
    $(function(){
        // 按钮风格
        $(".confirm-submit").button();
    })
</script>
{% endblock %}
{% block content %}
    {% if not error_type %}
        <div class="confirm-content">
            <form action='/item/buy/proc/{{item_id}}' method='post'>
                <div class="confirm-message">
                    <label>确认购买</label>
                </div>
                <input type='hidden' name='token' value='{{_session['token']}}' /><br/>
                <input class="confirm-submit" type='submit' value='确认' /><br/>
            </form>
        </div>
    {% else %}
        <div class="info-content">
            <div class="info-message">
                <label>
                    <span class="ui-icon ui-icon-closethick info-sign"></span>
                    出错了：{{error_type}}
                </label>
            </div>
            <div class="info-notice">
                <label>您可以选择到：<a href="/">主页</a>，<a href="/user">我的商品</a></label>
            </div>
        </div>
    {% endif %}
{% endblock %}
